package com.wdcg.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

import com.wdcg.R;

public class SplashScreenActivity extends Activity {

	private ImageView mImageView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash_screen);

		mImageView = (ImageView) findViewById(R.id.splashScreenImage);

		final Handler handler = new Handler();
		handler.postDelayed(new Runnable() {
		  public void run() {
		    //Do something after 3s
			  Intent lIntent = new Intent(SplashScreenActivity.this
						.getApplicationContext(), MainActivity.class);
				startActivity(lIntent);
		  }
		}, 3000);
		
		/*mImageView.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				Intent lIntent = new Intent(SplashScreenActivity.this
						.getApplicationContext(), MainActivity.class);
				startActivity(lIntent);
			}
		});*/
	}
}
